package com.zuo.service;

import com.zuo.entity.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 白白旧维
 * @Date 2022/3/2 17:52
 */
@Repository
public interface DepartmentService {

    /**
     * 部门列表
     * @return
     */
    List<Department> listDepartment();

    /**
     * 部门查询
     * @return
     */
    List<Department> searchDepartment(String dname);

    /**
     * 获取某个部门信息
     * @param id
     * @return
     */
    Department getOne(int id);

    /**
     * 修改部门信息
     * @param department
     * @return
     */
    int updateDepartment(Department department);

    /**
     * 删除部门
     * @param ids
     * @return
     */
    int removeDepts(String ids);

    /**
     * 添加部门
     * @param department
     * @return
     */
    int addDept(Department department);

}
